import BaseLayout from '../../layouts/BaseLayout.vue';
import Login from '../../views/login/index.vue';
import changepwd from '../../views/login/changepwd.vue';
import BlankLayout from '../../layouts/BlankLayout.vue';
export default [
  {
    path: '/',
    redirect: '/workSpace'
  },
  {
    path: '/login',
    component: Login,
    meta: { title: '登录页面' },
  },
  {
    path: '/users/changepwd',
    component: changepwd,
    meta: { title: '密码修改' },
  },
  {
    path: '/workspace',
    redirect: '/workspace/workbench',
    component: BaseLayout,
    meta: { title: '工作空间' },
    children: [
      {
        path: '/workspace/workbench',
        name: 'Workbench',
        component: () => import('../../views/workSpace/workbench/index.vue'),
        meta: { title: '工作台', requireAuth: true, affix: true, closable: false },
      },
      {
        path: '/workspace/console',
        component: () => import('../../views/workSpace/console/index.vue'),
        meta: { title: '控制台', requireAuth: true },
      },
      {
        path: '/workspace/analysis',
        component: () => import('../../views/workSpace/analysis/index.vue'),
        meta: { title: '分析页', requireAuth: true },
      },
      {
        path: '/workspace/monitor',
        component: () => import('../../views/workSpace/monitor/index.vue'),
        meta: { title: '监控页', requireAuth: true },
      }
    ]
  }, {
    path: '/error',
    component: BaseLayout,
    meta: { title: '错误页面' },
    children: [
      {
        path: '/error/401',
        component: () => import('../../views/error/401.vue'),
        meta: { title: '401' },
      },
      {
        path: '/error/403',
        component: () => import('../../views/error/403.vue'),
        meta: { title: '403' },
      },
      {
        path: '/error/404',
        component: () => import('../../views/error/404.vue'),
        meta: { title: '404' },
      },
      {
        path: '/error/500',
        component: () => import('../../views/error/500.vue'),
        meta: { title: '500' },
      }
    ]
  }, {
    path: '/system',
    component: BaseLayout,
    meta: { title: '系统管理' },
    children: [
      {
        path: '/system/user',
        component: () => import('../../views/system/user/index.vue'),
        meta: { title: '用户管理', requireAuth: true },
      },
      {
        path: '/system/role',
        component: () => import('../../views/system/role/index.vue'),
        meta: { title: '角色管理', requireAuth: true },
      },
      {
        path: '/system/menu',
        component: () => import('../../views/system/menu/index.vue'),
        meta: { title: '菜单管理', requireAuth: true },
      },
      {
        path: '/system/organization',
        component: () => import('../../views/system/organization/index.vue'),
        meta: { title: '机构管理', requireAuth: true },
      },
      {
        path: '/system/dictionary',
        component: () => import('../../views/system/dictionary/index.vue'),
        meta: { title: '字典管理', requireAuth: true },
      },
      {
        path: '/system/file',
        component: () => import('../../views/system/file/index.vue'),
        meta: { title: '文件管理', requireAuth: true },
      },
      {
        path: '/system/login',
        component: () => import('../../views/system/login/index.vue'),
        meta: { title: '登录日志', requireAuth: true },
      },
      {
        path: '/system/option',
        component: () => import('../../views/system/option/index.vue'),
        meta: { title: '操作日志', requireAuth: true },
      },
    ]
  }, {

    path: '/notice',
    component: BaseLayout,
    meta: { title: '通知公告' },
    children: [
      {
        path: '/notice/list',
        component: () => import('../../views/notice/list.vue'),
        meta: { title: '通知公告',keepalive:true },
      }
    ]
  },  {
    path: '/result',
    component: BaseLayout,
    meta: { title: '错误页面' },
    children: [
      {
        path: '/result/success',
        component: () => import('../../views/result/success.vue'),
        meta: { title: '成功页面', requireAuth: true },
      },
      {
        path: '/result/failure',
        component: () => import('../../views/result/failure.vue'),
        meta: { title: '失败页面', requireAuth: true },
      },
    ]
  }, {
    path: '/list',
    component: BaseLayout,
    meta: { title: '列表页面' },
    children: [
      {
        path: '/table/base',
        component: () => import('../../views/table/base.vue'),
        meta: { title: '查询列表', requireAuth: true },
      },
      {
        path: '/table/card',
        component: () => import('../../views/table/card.vue'),
        meta: { title: '卡片列表', requireAuth: true },
      },
      {
        path: '/table/project',
        component: () => import('../../views/table/project.vue'),
        meta: { title: '项目列表', requireAuth: true },
      },
      {
        path: '/table/article',
        component: () => import('../../views/table/article.vue'),
        meta: { title: '文章列表', requireAuth: true },
      }
    ]
  }, {
    path: '/form',
    component: BaseLayout,
    meta: { title: '表单页面' },
    children: [
      {
        path: '/form/base',
        component: () => import('../../views/form/base.vue'),
        meta: { title: '基础表单', requireAuth: true },
      },
      {
        path: '/form/step',
        component: () => import('../../views/form/step.vue'),
        meta: { title: '分步表单', requireAuth: true },
      },
      {
        path: '/form/intricate',
        name: 'Intricate',
        component: () => import('../../views/form/intricate.vue'),
        meta: { title: '复杂表单', requireAuth: true },
      },
      {
        path: '/form/step',
        name: 'Step',
        component: () => import('../../views/form/step.vue'),
        meta: { title: '分步表单', requireAuth: true },
      },
    ]
  }, {
    path: '/directive',
    component: BaseLayout,
    meta: { title: '内置指令' },
    children: [
      {
        path: '/directive/permission',
        component: () => import('../../views/directive/permission.vue'),
        meta: { title: '权限指令', requireAuth: true },
      },
    ]
  }, {
    path: '/component',
    component: BaseLayout,
    meta: { title: '常用组件' },
    children: [
      {
        path: '/component/qrcode',
        component: () => import('../../views/component/qrcode.vue'),
        meta: { title: '二维码', requireAuth: true },
      },
      {
        path: '/component/barcode',
        component: () => import('../../views/component/barcode.vue'),
        meta: { title: '条形码', requireAuth: true },
      },
      {
        path: '/component/treeSelect',
        component: () => import('../../views/component/treeSelect.vue'),
        meta: { title: '下拉树', requireAuth: true },
      },
    ]
  }, {
    path: '/enrollee',
    component: BaseLayout,
    meta: { title: '个人中心' },
    children: [
      {
        path: '/enrollee/profile',
        component: () => import('../../views/enrollee/profile/index.vue'),
        meta: { title: '我的资料', requireAuth: true },
      },
      {
        path: '/enrollee/message',
        component: () => import('../../views/enrollee/message/index.vue'),
        meta: { title: '我的消息', requireAuth: true },
      },

    ]
  },

  {

    path: '/users',
    component: BaseLayout,
    meta: { title: '人事管理' },
    children: [
      {
        path: '/users/list',
        component: () => import('../../views/users/list.vue'),
        meta: { title: '人员管理',keepalive:true },
      },
      {
        path: '/users/department',
        component: () => import('../../views/users/department.vue'),
        meta: { title: '部门管理' ,keepalive:true},
      }
      ,
      {
        path: '/users/role',
        component: () => import('../../views/users/role.vue'),
        meta: { title: '角色管理',keepalive:true },
      }
    ]
  },{

    path: '/webinfo',
    component: BaseLayout,
    meta: { title: '网站管理' },
    children: [
      {
        path: '/webinfo/list',
        component: () => import('../../views/webinfo/list.vue'),
        meta: { title: '网站管理' ,keepalive:true}
      },{
        path:"/webinfo/carousel",  component: () => import('../../views/webinfo/carousel.vue'),
        meta: { title: '轮播图' ,keepalive:true}
      }
    ]
  }, {
    path: '/oa',
    component: BaseLayout,
    meta: { title: 'oa' },
    children: [
      {
        path: '/oa/wait',
        component: () => import('../../views/oa/wait.vue'),
        meta: { title: '待办事项',keepalive:true },
      },
      {
        path: '/oa/office',
        component: () => import('../../views/oa/office/word.vue'),
        meta: { title: '待办事项' ,keepalive:true},
      },
      {
        path: '/oa/button',
        component: () => import('../../views/oa/flow/flowbutton.vue'),
        meta: { title: '流程按钮',keepalive:true },
      },
      
      {
        path: '/oa/completed',
        component: () => import('../../views/oa/completed.vue'),
        meta: { title: '已办事项',keepalive:true },
      },
      {
        path: '/oa/workrun/index',
        component: () => import('../../views/oa/workrun/index.vue'),
        meta: { title: '处理',keepalive:false },
      },
      {
        path: '/oa/flow/list',
        meta: { title: '流程管理' ,keepalive:true},
        component: () => import('../../views/oa/flow/list.vue')
      }, {
        path: '/oa/flow/design',
        meta: { title: '流程设计',keepalive:true },
        component: () => import('../../views/oa/flow/design.vue')
      }
    ]

  },
  {
    path: '/file',
    component: BaseLayout,
    meta: { title: '登录页面' },
    children:[
      {
        path: '/file/myfile',
        component: () => import('../../views/file/myfile.vue'),
        meta: { title: '网站管理',keepalive:true }
      
    },{
      path: '/file/fileshare',
      component: () => import('../../views/file/fileshare.vue'),
      meta: { title: '网站管理',keepalive:true }
    }]
  },{
    path: '/formdesign',
    meta: { title: '表单管理' },
    component: BaseLayout,
    children: [
      {
        path: '/formdesign/list',
        meta: { title: '表单管理',keepalive:true },
        component: () => import('../../views/form/list.vue')
      }, {
        path: '/formdesign/index',
        meta: { title: '表单设计',keepalive:false
       },
        component: () => import('../../views/form/design/index.vue')
      }, {
        path: '/formdesign/submitfrom',
        meta: { title: '新增→编辑详情' ,keepalive:false},
        hidden: true,
        component: () => import('../../views/form/submitfrom.vue')
      },
    ],
  }, {
    path: '/sys',
    component: BaseLayout,
    meta: { title: '系统管理' ,keepalive:true},
    children: [
      {
        path: '/sys/log',
        component: () => import('../../views/sys/log/log.vue'),
        meta: { title: '日志管理' ,keepalive:true},
      },
      {
        path: '/sys/dictionary',
        component: () => import('../../views/sys/dictionary.vue'),
        meta: { title: '数据字典',keepalive:true },
      }
      ,
      {
        path: '/sys/menu',
        component: () => import('../../views/sys/menu.vue'),
        meta: { title: '菜单管理',keepalive:true },
      }  ,
      {
        path: '/sys/appset',
        component: () => import('../../views/sys/appset.vue'),
        meta: { title: '应用设置' ,keepalive:true},
      }
      ,
      {
        path: '/sys/role',
        component: () => import('../../views/users/role.vue'),
        meta: { title: '角色管理' ,keepalive:true},
      }  
        ,
      {
        path: '/sys/webset',
        component: () => import('../../views/sys/webset.vue'),
        meta: { title: '网站设置' ,keepalive:true},
      }        ,
      {
        path: '/sys/currencydic',
        component: () => import('../../views/sys/currencydic.vue'),
        meta: { title: '通用字典' ,keepalive:true},
      }   ,
      {
        path: '/sys/dynamicroute',
        component: () => import('../../views/sys/dynamicroute.vue'),
        meta: { title: '动态路由' ,keepalive:true},
      }
   
    ]
  },   {
///common/common
path: '/common',
component: BaseLayout,
meta: { title: '通用表格配置' ,keepalive:true},
children:[
  {
    path: '/common/common',
    meta: { title: '通用表格配置' ,keepalive:true},
    hidden: true,
    component: () => import('../../views/common/common.vue')

}]
  }, {
    ///common/common
    path: '/article',
    component: BaseLayout,
    meta: { title: '文章美化' ,keepalive:true},
    children:[
      {
        path: '/article/ornament',
        meta: { title: '文章美化' ,keepalive:true},
        hidden: true,
        component: () => import('../../views/article/ornament.vue')
    
    }]
      },
  {
    path: '/consumption',
    component: BaseLayout,
    meta: { title: '餐饮管理' ,keepalive:true},
    children:[
      {
        path: '/consumption/food',
        meta: { title: '菜品管理' ,keepalive:true},
        hidden: true,
        component: () => import('../../views/consumption/food.vue')
    
    }
    ,
    {
      path: '/consumption/order',
      meta: { title: '订单管理' ,keepalive:true},
      hidden: true,
      component: () => import('../../views/consumption/order.vue')
  
  }
  ,
    {
      path: '/consumption/sumorder',
      meta: { title: '今日订单' ,keepalive:true},
      hidden: true,
      component: () => import('../../views/consumption/sumorder.vue')
  
  }  ,
  {
    path: '/consumption/address',
    meta: { title: '送餐点管理' ,keepalive:true},
    hidden: true,
    component: () => import('../../views/consumption/address.vue')

},
{
  path: '/consumption/consumdetail',
  meta: { title: '送餐点管理' ,keepalive:true},
  hidden: true,
  component: () => import('../../views/consumption/consumdetail.vue')

},
{
  path: '/consumption/summary/ScanCode',
  meta: { title: '扫码明细' ,keepalive:true},
  hidden: true,
  component: () => import('../../views/consumption/ScanCode.vue')

},
{
  path: '/consumption/summary/SummaryScanCode',
  meta: { title: '计次统计' ,keepalive:true},
  hidden: true,
  component: () => import('../../views/consumption/SummaryScanCode.vue')

}
,
{
  path: '/consumption/summary/OrderReport',
  meta: { title: '订单明细' ,keepalive:true},
  hidden: true,
  component: () => import('../../views/consumption/OrderReport.vue')

},
{
  path: '/consumption/summary/SummaryOrder',
  meta: { title: '订单统计' ,keepalive:true},
  hidden: true,
  component: () => import('../../views/consumption/SummaryOrder.vue')

}
,
{
  path: '/consumption/summary/EditDinedData',
  meta: { title: '数据纠正' ,keepalive:true},
  hidden: true,
  component: () => import('../../views/consumption/EditDinedData.vue')

}

  ]
  }
]
